import demo1.MyArrayList;

public class Text {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.display();
       // myArrayList.add(-1,5);
        // myArrayList.display();
        int ret = myArrayList.get(5);
        System.out.println(ret);
    }
}
